﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hyt.Core.Security;

namespace Hyt.Core.Authentication
{
    /// <summary>
    /// 授权管理器
    /// </summary>
    public interface IAuthManager
    {
        /// <summary>
        /// 是否有权限执行某个操作
        /// </summary>
        /// <param name="principal"></param>
        /// <param name="operation"></param>
        /// <returns></returns>
        AuthResult Check(IPrincipal principal, string operation);
    }
}
